FROM registry.cn-beijing.aliyuncs.com/hub-mirrors/openjdk:8-jdk-alpine
MAINTAINER huaocheng <huacheng@163.com>
# Add the service itself
ARG JAR_FILE
RUN echo "The value of ARG parameter 'my_arg' is: ${JAR_FILE}"
RUN ["mkdir", "-p", "/opt"]
ADD target/${JAR_FILE} /opt/app.jar
ENTRYPOINT ["java", "-jar", "/opt/app.jar"]
EXPOSE 8087